home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 July / EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso / lightwave / lwmlist / 95.lightwave-07 / 000573_owner-lightwave@e35.webcom.com_Thu Jul 27 03:05:03 1995.msg < prev    next >
Internet Message Format  |  1995-08-06  |  4KB

  1. Received: by webcom.com
  2.     (1.37.109.15/16.2) id AA173344062; Mon, 24 Jul 1995 12:27:42 -0700
  3. Return-Path: <owner-lightwave@e35.webcom.com>
  4. Received: from mail.holonet.net (guardian.holonet.net) by webcom.com with ESMTP
  5.     (1.37.109.15/16.2) id AA173014036; Mon, 24 Jul 1995 12:27:16 -0700
  6. Received: from tenforwd (root@localhost) by mail.holonet.net with UUCP
  7.     id MAA09552; Mon, 24 Jul 1995 12:13:41 -0700
  8. Received: by tenforward.com (wcGATE v4)
  9.     id 39717W Mon, 24 Jul 1995 19:05:50 GMT
  10. From: justin.barrett@tenforward.com (Justin Barrett)
  11. Subject: Re: Morphing Curves
  12. Date: Mon, 24 Jul 1995 14:56:00 GMT
  13. Message-Id: <9507241205506545@tenforward.com>
  14. Organization: Ten Forward BBS in Port Angeles, WA 360.452.7681
  15. To: lightwave@webcom.com
  16. Sender: owner-lightwave@webcom.com
  17. Precedence: bulk
  18.  
  19. On 23 Jul 95, Madvideo@Delphi.Com spoke up and said:
  20.  
  21. Ma>         I know that Lightwave morphs linear, but is there anyway to
  22. Ma> morph a curve.
  23. Ma>         I need to draw a few lines over a spinning globe to show
  24. Ma> traveling routes.
  25.  
  26. Ma>         I have tried using a straight line that morphs to a curve, a
  27. Ma> displacement map that displaces a straight line into a curved line.
  28.  
  29. Ma>         Any Ideas???
  30.  
  31. Here's one for you, using a combination of morphing and clip mapping.  I
  32. take it you've been using actual objects (not maps) for the lines, so this
  33. should work with the objects you currently have.  If not, it shouldn't be
  34. too hard to do the modeling.
  35.  
  36. First, go into your favorite paint program and make a screen that has the
  37. left side totally black, and the right side totally white...split EXACTLY
  38. down the middle.  This exact half-and-half image is crucial to the effect
  39. working properly.  Cut out a brush that is the full image width, and only a
  40. few pixels high...5 would probably do.  This will become a moving clip map
  41. to reveal your line.
  42.  
  43. Now to model the line.  First model the straight line version, or use the
  44. straight line you already have.  You will need to have the end where the
  45. line "begins" (where it will begin to be drawn or revealed) at 0,0,0, and
  46. have it pointing in the positive X axis.  Give it a surface name of your
  47. choosing, and save it.  Now bend and tweak it however you like into the
  48. properly shaped curve, and save it as a separate object.
  49.  
  50. Now in Layout, load your two line objects.  Make a single clone of the
  51. curved version.  Set the morph target of the straight line to the curved
  52. line (1), morph value 100%, morph surfaces on.  Make *both* curved lines
  53. 100% dissolved.
  54.  
  55. Parent both curved lines to the straight line, and position the straight
  56. line (now morphed) in its proper place by your globe.  Set a key at 0 for
  57. all objects.
  58.  
  59. Now back in the objects panel, load the image you created earlier as a clip
  60. map for the straight line.  Select Automatic sizing, and then reset the
  61. texture center to 0,0,0 if it has been changed.  This texture setting
  62. should place the center of the image map - the black/white crossover - at
  63. the beginning end of your line, with the whole right side (+X) being
  64. clipped by the white part of the image map.  Now take the X texture size
  65. and triple it (at least).  Also, turn off pixel blending and anti-aliasing.
  66.  
  67. To reveal your line, set a positive X velocity for the clip map.  The black
  68. part of the map will be "un-clipping" your object as it moves.  With a
  69. high X size, there should be no danger of the map looping back onto itself
  70. and re-clipping your beginning end.  Since the object is morphed, the
  71. revealing process should follow your curved shape in a smooth, even
  72. fashion.  You'll have to play with the velocity value to find a speed that
  73. suits you.
  74.  
  75. When your line is completely revealed, do a one frame dissolve from curved
  76. line (1) to curved line (2), which doesn't have the map affecting it.  Now
  77. your line is fully visible, and will be as long as you need it.
  78.  
  79. Hope this works for you!
  80.  
  81.          Justin Barrett - justin.barrett@tenforward.com - 1:350/401
  82.     Free Spirit Productions   -   Northland Cable   -   Peninsula College
  83.  
  84.  * Q-Blue 2.1 *
  85. --
  86. justin.barrett@tenforward.com (Justin Barrett) sent this message.
  87. To Post a Message           : lightwave@webcom.com
  88. Un/Subscription Requests To : lightwave-request@webcom.com
  89. (DIGEST)                 or : lightwave-digest-request@webcom.com
  90. Administrative Items To     : owner-lightwave@webcom.com